<div class="flexform">
    
    <?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'orders-form',
	'enableAjaxValidation'=>false
)); ?>
                    <div class="row">
                <?php echo $form->labelEx($model,'order_number'); ?>
                <?php echo $form->textField($model,'order_number',array('size'=>20,'maxlength'=>20)); ?>
                <?php echo $form->error($model,'order_number', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'site_key'); ?>
                <?php echo $form->textField($model,'site_key',array('size'=>60,'maxlength'=>255)); ?>
                <?php echo $form->error($model,'site_key', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'currency_tag'); ?>
                <?php echo $form->textField($model,'currency_tag',array('size'=>3,'maxlength'=>3)); ?>
                <?php echo $form->error($model,'currency_tag', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'total_price'); ?>
                <?php echo $form->textField($model,'total_price',array('size'=>10,'maxlength'=>10)); ?>
                <?php echo $form->error($model,'total_price', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'comment'); ?>
                <?php echo $form->textArea($model,'comment',array('rows'=>6, 'cols'=>50)); ?>
                <?php echo $form->error($model,'comment', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'coupon'); ?>
                <?php echo $form->textField($model,'coupon',array('size'=>50,'maxlength'=>50)); ?>
                <?php echo $form->error($model,'coupon', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'offset'); ?>
                <?php echo $form->textField($model,'offset',array('size'=>10,'maxlength'=>10)); ?>
                <?php echo $form->error($model,'offset', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'order_date'); ?>
                <?php echo $form->textField($model,'order_date',array('size'=>11,'maxlength'=>11)); ?>
                <?php echo $form->error($model,'order_date', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'pay_status'); ?>
                <?php echo $form->textField($model,'pay_status',array('size'=>2,'maxlength'=>2)); ?>
                <?php echo $form->error($model,'pay_status', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'status'); ?>
                <?php echo $form->textField($model,'status',array('size'=>2,'maxlength'=>2)); ?>
                <?php echo $form->error($model,'status', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'uid'); ?>
                <?php echo $form->textField($model,'uid',array('size'=>11,'maxlength'=>11)); ?>
                <?php echo $form->error($model,'uid', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                        <div class="row">
                <?php echo $form->labelEx($model,'pay_type'); ?>
                <?php echo $form->textField($model,'pay_type',array('size'=>50,'maxlength'=>50)); ?>
                <?php echo $form->error($model,'pay_type', array('class' => 'form-msg-error-advanced')); ?>
            </div>

                    <div class="action">
            <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
        </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>